package com.student.utils;

public class SaltUtil {
    public static String getSalt() {
        /**
         * 生成6位随机数字
         */
        StringBuffer stringBuffer = new StringBuffer();
        int a = 0;
        for (int i = 0; i < 6; i++) {
            a = (int) (Math.random() * 10);
            stringBuffer.append(a);
        }
        return stringBuffer.toString();
    }
}
